﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace wLib.Objects
{
    /// <summary>
    /// Return the base of the Web Server Control. The base means struct of control. The pure base object for DOM!
    /// </summary>
    public class FactoryBase : IFactory
    {


        #region IFactory Members

        public string CreateFactoryScenario(eNumComponent controlType)
        {
            string wsBase = string.Empty;

            switch (controlType)
            {
                case eNumComponent.wTable:
                    wsBase = WorkBaseForTable();
                    break;
                default:
                    break;
            }

            return wsBase;
        }

        #endregion


        //>>>passar isso para classe controller da table ou domain...pensar melhor
        private string WorkBaseForTable()
        {
            IBaseController baseTable = new cBaseHtml();
            return baseTable.WorkItBase(eNumComponent.wTable);
        }

    }
}
